package com.fortune.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fortune.dto.in.mChannelDiscount.MChannelDiscountAddDto;
import com.fortune.dto.in.mChannelDiscount.MChannelDiscountDeleteDto;
import com.fortune.dto.in.mChannelDiscount.MChannelDiscountEditDto;
import com.fortune.dto.in.mChannelDiscount.MChannelDiscountListDto;
import com.fortune.entity.MUserInfo;
import com.fortune.vo.mChannelDiscount.MChannelDiscount;

public interface MChannelDiscountDao {
	
	List<MChannelDiscount> list(@Param("mUserInfo")MUserInfo mUserInfo,@Param("listDto")MChannelDiscountListDto listDto);
	
	int count(@Param("mUserInfo")MUserInfo mUserInfo,@Param("listDto")MChannelDiscountListDto listDto);
	
	int add(@Param("mUserInfo")MUserInfo mUserInfo,@Param("addDto")MChannelDiscountAddDto addDto);
	
	Integer checkAdd(@Param("mUserInfo")MUserInfo mUserInfo,@Param("addDto")MChannelDiscountAddDto addDto);
	
	Integer checkEdit(@Param("mUserInfo")MUserInfo mUserInfo,@Param("editDto")MChannelDiscountEditDto editDto);
	
	int update(@Param("mUserInfo")MUserInfo mUserInfo,@Param("editDto")MChannelDiscountEditDto editDto);
	
	String checkDelete(@Param("mUserInfo")MUserInfo mUserInfo,@Param("deleteDto")MChannelDiscountDeleteDto deleteDto);
	
	int delete(@Param("mUserInfo")MUserInfo mUserInfo,@Param("deleteDto")MChannelDiscountDeleteDto deleteDto);
}
